package com.example.demo.service.impl;

import com.example.demo.entity.UserT;
import com.example.demo.mapper.UserTMapper;
import com.example.demo.service.UserTService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author hangge
 * @since 2020-07-25
 */
@Repository
@Service
public class UserTServiceImpl extends ServiceImpl<UserTMapper, UserT> implements UserTService {

    @Autowired
    private UserTMapper userTMapper;

    @Override
    public UserT selectByid(Integer id) {
        UserT userT = userTMapper.selectByDid(id);
        return userT;
    }

    @Override
    public List<UserT> selectList(Integer id) {
        List<UserT> list = userTMapper.selectList(id);
        return list;
    }

    @Override
    public List<UserT> selectListByMobile(String mobile) {
        List<UserT> list = userTMapper.selectListByMobile(mobile);
        return list;
    }
}
